home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / printing / nenscrip.000 / nenscrip / nenscript-1.13++ / paper.c < prev    next >
C/C++ Source or Header  |  1992-10-01  |  2KB  |  66 lines

  1. #include "machdep.h"
  2.  
  3. #include "paper.h"
  4.  
  5. static char CourierBold10[]   = "Courier-Bold10";
  6. static char Courier10[]       = "Courier10";
  7. static char Courier7[]        = "Courier7";
  8. static char HelveticaBold36[] = "Helvetica-Bold36";
  9. static char TimesBold12[]     = "Times-Bold12";
  10. static char TimesRoman14[]    = "Times-Roman14";
  11. static char HelveticaBold28[] = "Helvetica-Bold28";
  12.  
  13.  
  14. /* This table defines all of the possible paper types */
  15.  
  16. struct PaperMetrics PaperTypes[] = {
  17.  
  18. {  "a4",
  19.             842L,                /* paper height = 297 mm */
  20.             595L,                /* paper height = 210 mm */
  21.  
  22.              CourierBold10,        /* non-gaudy title font */
  23.              Courier10,            /* portrait text font */
  24.              Courier7,            /* landscape text font */
  25.  
  26.             HelveticaBold36,    /* gaudy mode page number font */
  27.             TimesBold12,        /* gaudy mode date font */
  28.             TimesRoman14,        /* gaudy mode title font */
  29.             HelveticaBold28,    /* classification herder/footer font */
  30.  
  31.             72L,                /* width of boxes in gaudy mode */
  32.             36L,                /* height of boxes in gaudy mode */
  33.             18L,                /* height of bar in gaudy mode */
  34.  
  35.             36L                /* column separation */
  36.  
  37. },
  38.  
  39. {  "us",
  40.             792L,                /* paper height = 11 inches */
  41.             612L,                /* paper width = 8.5 inches */
  42.  
  43.              CourierBold10,        /* non-gaudy title font */
  44.              Courier10,            /* portrait text font */
  45.              Courier7,            /* landscape text font */
  46.  
  47.             HelveticaBold36,    /* gaudy mode page number font */
  48.             TimesBold12,        /* gaudy mode date font */
  49.             TimesRoman14,        /* gaudy mode title font */
  50.             HelveticaBold28,    /* classification herder/footer font */
  51.  
  52.             72L,                /* width of boxes in gaudy mode */
  53.             36L,                /* height of boxes in gaudy mode */
  54.             18L,                /* height of bar in gaudy mode */
  55.  
  56.             36L                /* column separation */
  57.  
  58. },
  59.  
  60. {  NULL,
  61.             0L, 0L, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0L, 0L, 0L, 0L
  62. }
  63.  
  64. };
  65.  
  66.